package com.keter.framework.web.base;

import com.alibaba.fastjson.JSONObject;
import com.keter.framework.core.result.JSONResult;
import com.keter.framework.web.util.WrapUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

@Controller
public abstract  class AbstractBaseController {

	protected JSONResult wrap(Object obj) {
		return WrapUtil.wrapObject(obj);
	}

	protected JSONResult success() {
		JSONObject success = new JSONObject();
		success.put("message","success");
		return wrap(success);
	}

}
